//
//  CNKIScrollview.h
//  CNKICommunity
//
//  Created by wei on 17/2/8.
//  Copyright © 2017年 CNKI. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CNKIScrollviewClickDelegate <NSObject>

@optional
-(void)clickBtnId:(NSInteger)BtnId BtnName:(NSString*)Name;

-(void)clickHorizonBtnId:(NSInteger)BtnId BtnHorizonName:(NSString*)Name;

typedef enum {
    CNKIScrollviewHorizon,//横向
    CNKIScrollviewVertical,//纵向
} CNKIScrollviewMode;

typedef enum {
    CNKIScrollviewEqualWidth,//等宽
    CNKIScrollviewNoEqualWidth,//不等宽
} CNKIScrollviewWidthMode;


@end


@interface CNKIScrollview : UIScrollView

@property(nonatomic,weak)id<CNKIScrollviewClickDelegate>CNKIScrollviewDelegate;

//排列方式
@property(nonatomic,assign)CNKIScrollviewMode mode;

//是否等宽
@property(nonatomic,assign)CNKIScrollviewWidthMode WidthMode;

//屏幕显示个数
@property(nonatomic,assign)CGFloat ButtonDisplayNum;

//按钮个数
@property(nonatomic,strong)NSArray *ButtonContent;

//字体大小
@property(nonatomic,strong)UIFont *TitleFont;

//背景指示图片
@property(nonatomic,strong)UIImage *IndicateImage;

//指示器背景颜色
@property(nonatomic,strong)UIColor *IndicateBackgroudColor;

//指示器的高度
@property(nonatomic,assign)CGFloat IndicateHeight;

//选中字体的颜色
@property(nonatomic,strong)UIColor *SelectTitleColor;

//未选中的字体颜色
@property(nonatomic,strong)UIColor *DeSelectTitleColor;


@end
